package com.sure.oa.func.security.login.impl;

import com.sure.oa.func.security.login.SecurityLoginDao;
import com.sure.oa.func.security.login.SecurityLoginService;
import com.sure.oa.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SecurityLoginServiceImpl implements SecurityLoginService {

    @Autowired
    private SecurityLoginDao securityLoginDao;

    @Override
    public boolean checkLogin(String u_id, String u_pwd) {

        User user = securityLoginDao.findUserByUserIdAndUserPwd(u_id,u_pwd);

        return user != null;
    }
}
